package ru.elteam.web.beans.request;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

/**
 * @author Nikita.Brazhnikov
 */
@Named("object_comments")
@RequestScoped
public class CommentsProcessingBean {

	private Long objectId;

	private CommentMessage message = new CommentMessage();

	public Long getObjectId() {
		return objectId;
	}

	public CommentMessage getMessage() {
		return message;
	}

	public void setObjectId(Long objectId) {
		this.objectId = objectId;
	}

	public void setMessage(CommentMessage message) {
		this.message = message;
	}


	public String saveNewMessage() {

		return "";
	}

	private static class CommentMessage {
		private String message;

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}
	}

}
